<style type="text/css">
.new_cart th.remove {
	width: 10px;
}
.new_cart th {
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #999;
}
.new_cart th small {
	display:block;
	font-weight:normal;
}
.new_cart {
	margin-top: 10px;
	margin-right: auto;
	margin-left: auto;
}
.new_cart .total_divider {
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #9D9D9D;
	padding: 0px;
	font-size: 0px;
	line-height: 0px;
}
.new_cart  td , .new_cart th{
	padding: 5px;
	vertical-align: top;
}
.sumval td {
	background-color: #F3F3F3;
}
.new_cart .qty_controller {
	display: block;
	overflow: hidden;
	width: 52px;
	margin-right: auto;
	margin-left: auto;
}
.new_cart .qty_input {
	width: 30px;
	text-align: center;
	border: 1px inset #CCC;
	padding: 2px;
	height: 20px;
	float: left;
}
.new_cart .qtyincdec {
	display: inline-block;
	width: 12px;
	float: right;
}
.new_cart .qtyincdec a {
	display: block;
	background-color: #7c7c7c;
	text-decoration: none;
	border: 1px solid #686868;
	width: 10px;
	height: 10px;
	overflow: hidden;
	text-indent: -99999px;
	background-position: center center;
	background-repeat: no-repeat;
}
.new_cart .qtyincdec a:hover {
	border: 1px solid #232323;
	background-color: #515151;
}
.new_cart .qtyincdec a.incrs {
	background-image: url(images/qty_inc.gif);
	margin-bottom: 1px;
}
.new_cart .qtyincdec a.decrs {
	background-image: url(images/qty_dec.gif);
	margin-top: 1px;
}
.new_cart .remove_item_btn {
	display: block;
	height: 16px;
	width: 16px;
	text-indent: -99999px;
	background-image: url(http://tempscratchy2335.e-nitiative.eu/template/images/icons/cart_remove_itm.png);
}
.new_cart .item td {
	border-top-width: 1px;
	border-right-width: 1px;
	border-top-style: solid;
	border-right-style: dashed;
	border-top-color: #CCC;
	border-right-color: #EEE;
}
.new_cart .item td.lst {
	border-right:none;
}
.new_cart tr.item:hover td {
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #CCC;
	background-color: #A6FBFF;
}
.new_cart .total_amount {
	font-size: 14px;
	font-weight: bold;
}
.new_cart .total_wout_vat_amount {
	font-weight: bold;
}
.new_cart .total_amount .amount {
	border-top-width: 3px;
	border-top-style: double;
	border-top-color: #888;
}
.new_cart .total_amount .lbl {
	border-top-width: 3px;
	border-top-style: double;
	border-top-color: transparent;
}
.new_cart .cart_actions_col {
	background-color: #E5E5E5;
	padding: 10px;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #C7C7C7;
}
.new_cart .cart_actions .checkout {
	background-color: #676767;
	color: #FFF;
	text-decoration: none;
	display: block;
	padding-top: 5px;
	padding-right: 10px;
	padding-bottom: 5px;
	padding-left: 10px;
	font-weight: bold;
	font-size: 13px;
}

.new_cart .item_tax_info th, .new_cart .item_tax_info td {
	padding: 2px;
	border:none !important;
	font-weight:normal;
	text-align:right;
}
.new_cart .item_tax_info .total_tax_amount td, .new_cart .item_tax_info .total_tax_amount th{
	font-weight: bold;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #CCC;
}
</style>
<h2>Order id  <?php echo $orderlist["order_id"]?></h2>
<?php echo $carthtml ;?>
<table width="98%" cellspacing="1" cellpadding="2" style="line-height: 32px;" class="cart_tbl">
	<tr>
		<th colspan="2" align="left" class="table-header-repeat line-left">&nbsp;</th>
	</tr>
         <?php if(strlen($orderlist["customer_id"])>0):?>
	<tr>
		<td width="20%">Order id</td>
		<td width="60%"><?php echo $orderlist["order_id"]?> </td>
	</tr>
<?php endif; ?>
       
  <?php if(strlen($orderlist["customer_id"])>0):?>
	<tr>
		<td width="20%">Customer id</td>
		<td width="60%"><?php echo $orderlist["customer_id"]?> </td>
	</tr>
<?php endif; ?>
          <?php if(strlen($orderlist["order_date"])>0):?>
	<tr>
		<td width="20%">Ordr Date</td>
		<td width="60%"><?php echo $orderlist["order_date"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["user_email"])>0):?>
	<tr>
		<td width="20%">Customer id</td>
		<td width="60%"><?php echo $orderlist["user_email"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["user_firstname"])>0):?>
	<tr>
		<td width="20%">Customer Name</td>
		<td width="60%"><?php echo $orderlist["user_firstname"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["user_address"])>0):?>
	<tr>
		<td width="20%">Customer Address</td>
		<td width="60%"><?php echo $orderlist["user_address"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["user_phone"])>0):?>
	<tr>
		<td width="20%">Customer Phone</td>
		<td width="60%"><?php echo $orderlist["user_phone"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["companyname"])>0):?>
	<tr>
		<td width="20%">Company</td>
		<td width="60%"><?php echo $orderlist["companyname"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["user_address"])>0):?>
	<tr>
		<td width="20%">Customer id</td>
		<td width="60%"><?php echo $orderlist["user_address"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["companyaddress"])>0):?>
	<tr>
		<td width="20%">Company Adress</td>
		<td width="60%"><?php echo $orderlist["companyaddress"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["typeofbusiness"])>0):?>
	<tr>
		<td width="20%">Business Type</td>
		<td width="60%"><?php echo $orderlist["typeofbusiness"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["prefferedpayment"])>0):?>
	<tr>
		<td width="20%">Preffered Payment</td>
		<td width="60%"><?php echo $orderlist["prefferedpayment"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["usertype"])>0):?>

	<tr>
		<td width="20%">User Type</td>
		<td width="60%"><?php echo ($orderlist["usertype"])==1?"Personal":"Business";?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["userfax"])>0):?>
	<tr>
		<td width="20%">Fax</td>
		<td width="60%"><?php echo $orderlist["userfax"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["nicno"])>0):?>
	<tr>
		<td width="20%">NIC</td>
		<td width="60%"><?php echo $orderlist["nicno"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["profession"])>0):?>
	<tr>
		<td width="20%">Paid</td>
		<td width="60%"><?php echo $orderlist["profession"]?></td>
	</tr>
        <?php endif; ?>
<?php if(strlen($orderlist["isdelivered"])>0):?>
        <tr>
		<td width="20%">Delivered</td>
		<td width="60%"><?php echo ($orderlist["isdelivered"])==1?"YES":"NO";?></td>
	</tr>
        <?php endif; ?>
        <?php if(strlen($orderlist["ispaid"])>0):?>
        <tr>
		<td width="20%">Paid</td>
		<td width="60%"><?php echo ($orderlist["ispaid"])==1?"YES":"NO";?></td>
	</tr>
        <?php endif; ?>

         <?php if(strlen($orderlist["iscancelled"])!=0  && $orderlist["isprocessing"]!=1):?>
        <tr>
		<td width="20%">Cancel this order</td>
		 <td><a onclick="return confirm('Are you sure you want to cancel this order?') " href="<?php echo  SITEURL;?>index.php?cancelorder/orderid/<?php echo $order_id ;?>">Cancel Order</a></td>
	</tr>
        <?php endif; ?>

</table>
